package A01Function;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

public class FunctionDemo3 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,"zzz,123","zasad1,545");
        List<Student> l = list.stream().map(Student::new).collect(Collectors.toList());
        System.out.println(l);
    }
}
